<?php

/* @var $this yii\web\View */
$this->registerJsFile('/js/jquery-3.4.1.min.js');

$this->registerJsFile('/js/tools.js');
//引入图片剪裁工具
$this->registerCssFile('/css/cropper.css');
$this->registerJsFile('/js/cropper.js');

$this->registerJsFile('/js/user/setheadimg.js?v=1.0.0');
$this->registerCssFile('/css/user/setheadimg.css?v=1.0.3');
$this->registerJsFile('/js/layer/layer.js');
?>
<div class="layui-tab layui-tab-brief" >
  <ul class="layui-tab-title">
    <li<?= $this->context->leftmenu=='introduce' ? ' class="layui-this" ' : '';?>><a href="/user/default/set-introduce">会员信息</a></li>
    <li<?= $this->context->leftmenu=='setheadimg' ? ' class="layui-this" ' : '';?>><a href="/user/default/setheadimg">头像管理</a></li>
    <li<?= $this->context->leftmenu=='password' ? ' class="layui-this" ' : '';?>><a href="/user/default/set-introduce">修改密码</a></li>
    <li<?= $this->context->leftmenu=='phone' ? ' class="layui-this" ' : '';?>><a href="/user/default/set-introduce">修改手机号</a></li>
    <li<?= $this->context->leftmenu=='ruzu' ? ' class="layui-this" ' : '';?>><a href="/user/default/set-introduce">媒体入驻</a></li>
  </ul>
</div> 
<!--<input type="file" class="imgInput"  />-->
<div class="user-img content">
		<i class="iconfont skewing">&#xe604;</i>
		<img class="headimg" src="<?= $data['headimg'] ?>"/>
</div>
<div class="select-file-outter" id="select-file-outter">
 <a href="javascript:;" class="a-upload">
    <input type="file" class="imgInput">点击这里上传头像图片
</a>
</div>
<!--用来显示图片的div，自定义样式-->
<div>
    <img src="" class="origin-img" id="image" style="width: 80%;"/>
	
</div>
<div class="oporate-area">
<span class="savehead" id="savehead">保存</span>
<span class="cancel" id="cancel">取消</span>
</div>

